package rs.fon.is.music.domain;

import rs.fon.is.music.util.Constants;
import thewebsemantic.Namespace;
import thewebsemantic.RdfProperty;
import thewebsemantic.RdfType;

@Namespace(Constants.SCHEMA)
@RdfType("GeoCoordinates")
public class GeoCoordinates extends Thing {

	@RdfProperty(Constants.SCHEMA + "longitude")
	private double longitude;
	
	@RdfProperty(Constants.SCHEMA + "latitude")
	private double latitude;

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}
	
	@Override
	public String toString() {
		
		String s = "Geo: " 
				+ "\nURI: " + getUri() 
				+ "\nlatitude: " + getLatitude()
				+ "\nlongitude:" + getLongitude();
		
		return s;
	}
	
}
